home *** CD-ROM | disk | FTP | other *** search
/ Software Vault: The Gold Collection / Software Vault - The Gold Collection (American Databankers) (1993).ISO / cdr28 / 3c509drv.zip / OS2EE.BAT < prev    next >
DOS Batch File  |  1993-06-01  |  3KB  |  103 lines

  1. @echo off
  2. REM %%VER DOS Batch File for Installing NDIS Drivers to OS/2 EE v2.0b
  3.  
  4. REM *************************************************
  5.  
  6. REM  Format: From the NDIS subdirectory
  7. REM             > os2ee\os2ee [Target_Drive:]
  8.  
  9. REM *************************************************
  10.  
  11. if not exist %1\cmlib\elnk3.os2 goto skip1
  12. ..\install\echoxy 14 10 Saving old EtherLink III driver on %1\CMLIB to ELNK3.OLD
  13.  
  14. copy %1\cmlib\elnk3.os2 %1\cmlib\elnk3.old > nul
  15. :skip1
  16. copy ..\mslanman.os2\drivers\ethernet\elnk3\elnk3.os2 %1\cmlib > nul
  17. ..\install\echoxy 15 10 Installed EtherLink III OS/2 driver in the directory %1\cmlib
  18. ..\install\echoxy 16 10
  19.  
  20. if not exist %1\config.sys goto errmsg
  21. if not exist %1\cmlib\protocol.ini goto errmsg
  22. copy %1\config.sys config.tmp > nul
  23. copy %1\cmlib\protocol.ini protocol.tmp > nul
  24.  
  25. REM modify config.sys
  26.  
  27. :insconfig
  28. ..\install\csed /f config.tmp /b "*ELNKII*" "DEVICE=%tardrv%\CMLIB\ELNK3.OS2"
  29. if errorlevel 1 goto errmsg
  30. ..\install\csed /f config.tmp /d "*ELNKII*"
  31. if errorlevel 1 goto errmsg
  32.  
  33. REM check for protocol.ini already changed
  34.  
  35. ..\install\csed /f protocol.tmp /s [TCMAC1] 0
  36. if errorlevel 3 goto errmsg
  37. if errorlevel 2 goto insproto
  38. if errorlevel 1 goto errmsg
  39. goto errproto
  40.  
  41.  
  42. REM modify protocol.ini
  43.  
  44. :insproto
  45. ..\install\csed /f protocol.tmp /b "*[tcmac]*" "[TCMAC1]"
  46. if errorlevel 1 goto errmsg
  47. ..\install\csed /f protocol.tmp /b "*[tcmac]*" "   DriverName = ELNK3$"
  48. if errorlevel 1 goto errmsg
  49. ..\install\csed /f protocol.tmp /b "*[tcmac]*" "   MaxTransmits = 40"
  50. if errorlevel 1 goto errmsg
  51. ..\install\csed /f protocol.tmp /r "*bindings = TCMAC*" "    Bindings = TCMAC1"
  52. if errorlevel 1 goto errmsg
  53.  
  54. REM save the original files
  55.  
  56. copy %1\config.sys %1\config.old > nul
  57. copy %1\cmlib\protocol.ini %1\cmlib\protocol.old > nul
  58.  
  59. REM copy the updated files back
  60.  
  61. copy config.tmp %1\config.sys > nul
  62. copy protocol.tmp %1\cmlib\protocol.ini > nul
  63.  
  64. set update=y
  65.  
  66. :DONE
  67. del *.tmp > nul
  68.  
  69. ..\install\echoxy 16 10 The CONFIG.SYS and PROTOCOL.INI files have been modified
  70. ..\install\echoxy 17 10 to use the EtherLink III NDIS driver.
  71. ..\install\echoxy 20 10 Strike any key to return to the NDIS menu.
  72. ..\install\reply
  73. ndis
  74.  
  75. :errmsg
  76. del *.tmp > nul
  77. ..\install\echoxy 16 10 ************* Error:  Installation Aborted! **************
  78. ..\install\echoxy 17 10 Make sure that you have entered the correct drive letter
  79. ..\install\echoxy 18 10 and that you have access rights to the files.  Make sure
  80. ..\install\echoxy 19 10 that the CONFIG.SYS and PROTOCOL.INI files have not moved
  81. ..\install\echoxy 20 10 or changed since the OS/2 EE installation.
  82. ..\install\echoxy 22 10 Strike any key to return to the NDIS menu.
  83. ..\install\reply
  84. ndis
  85.  
  86. :errconfig
  87. del *.tmp > nul
  88. ..\install\echoxy 16 10 ************* Error:  Installation Aborted! **************
  89. ..\install\echoxy 17 10 The CONFIG.SYS file already contains a reference
  90. :errcont
  91. ..\install\echoxy 18 10 to the ELNK3.OS2 driver.
  92. ..\install\echoxy 19 10 The CONFIG.SYS and PROTOCOL.INI files have not been changed
  93. ..\install\echoxy 22 10 Strike any key to return to the NDIS menu.
  94. ..\install\reply
  95. ndis
  96.  
  97. :errproto
  98. del *.tmp > nul
  99. ..\install\echoxy 16 10 ************* Error:  Installation Aborted! **************
  100. ..\install\echoxy 17 10 The PROTOCOL.INI file already contains a reference
  101. goto errcont
  102.  
  103.